﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductMonitor.Models
{
    /// <summary>
    /// 员工缺席信息
    /// </summary>
    class StaffAbsenceModel
    {
        /// <summary>
        /// 员工姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 员工所属部门
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 缺席次数
        /// </summary>
        public int AbsenceCount { get; set; }

        /// <summary>
        /// 缺席柱状图需要的数据
        /// </summary>
        public int Width { get => AbsenceCount * 40 / 100; }
    }
}
